<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

	<ui:composition template="template.xhtml">
	<ui:define name="corpo-da-pagina">
		<h:form >
		<p:outputLabel value= "Número máximo : " />
		
		<p:dataTable id="dataTable" var="auto" value="#{automovelBean.autos}" sortMode="multiple" rows="5" paginator="true">  
        <f:facet name="header">  
            Ajax Sorting  
        </f:facet>  
  
        <p:column>
        	#{auto.idautomovel}
        </p:column>  
  
        <p:column sortBy="#{car.year}" headerText="Year">  
            <h:outputText value="#{car.year}" />  
        </p:column>  
  
        <p:column sortBy="#{car.manufacturer}" headerText="Manufacturer">  
            <h:outputText value="#{car.manufacturer}" />  
        </p:column>  
  
        <p:column sortBy="#{car.color}" headerText="Color">  
            <h:outputText value="#{car.color}" />  
        </p:column>  
    </p:dataTable>  
		</h:form >
		
	
		</ui:define >
	</ui:composition>
</html>